﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace nplJobsDAL.Select
{
    public class SelectOverseasJobs : DataAccessBase
    {
        public SelectOverseasJobs()
        {
            StoredProcedureName = StoredProcedure.Name.spGetOverseasJobDetailsCount.ToString();
        }
        public int GetOverseasJobDetailsCount()
        {
            DataBaseHelper dbHelper;

            try
            {
                dbHelper = new DataBaseHelper(StoredProcedureName);
                object count = dbHelper.RunScalar();
                return Convert.ToInt32(count);
            }
            catch (Exception)
            {

                throw;
            }
        }

    }
}
